package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单对象 tb_order
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收货地址id */
    @Excel(name = "收货地址id")
    private Long addressId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 订单照片 */
    @Excel(name = "订单照片")
    private String image;

    /** 是否删除 0表示未删除  1表示已删除 */
    @Excel(name = "是否删除 0表示未删除  1表示已删除")
    private String isDelete;

    /** 订单状态 0表示打包中 1表示配送中 2表示待支付 3表示已完成  4表示已取消 */
    @Excel(name = "订单状态 0表示打包中 1表示配送中 2表示待支付 3表示已完成  4表示已取消")
    private String state;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private String realPrice;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String note;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setRealPrice(String realPrice) 
    {
        this.realPrice = realPrice;
    }

    public String getRealPrice() 
    {
        return realPrice;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("addressId", getAddressId())
            .append("paymentMethod", getPaymentMethod())
            .append("image", getImage())
            .append("isDelete", getIsDelete())
            .append("state", getState())
            .append("orderNumber", getOrderNumber())
            .append("realPrice", getRealPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
